package com.sinbader.xiaole.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("buy_order_info")
@ApiModel(value="BuyOrderInfo对象", description="采购订单信息表")
public class BuyOrderInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "单据编号")
    @TableField("order_num")
    private String orderNum;

    @ApiModelProperty(value = "单据日期")
    @TableField("order_date")
    private Date orderDate;

    @ApiModelProperty(value = "供应商id")
    @TableField("supplier_id")
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @ApiModelProperty(value = "入库状态：0: 已入库 1:未入库")
    @TableField("in_stock_status")
    private Integer inStockStatus;

    @ApiModelProperty(value = "订货日期")
    @TableField("buy_order_date")
    private Date buyOrderDate;

    @ApiModelProperty(value = "预计到货日期")
    @TableField("arrival_date")
    private Date arrivalDate;

    @ApiModelProperty(value = "订货数量")
    @TableField("order_total_count")
    private Integer orderTotalCount;

    @ApiModelProperty(value = "实际到货总数量")
    @TableField("actual_arrival_total_count")
    private Integer actualArrivalTotalCount;

    @ApiModelProperty(value = "订单总金额")
    @TableField("order_total_amt")
    private BigDecimal orderTotalAmt;

    @ApiModelProperty(value = "订单项数(种类)")
    @TableField("order_type_count")
    private Integer orderTypeCount;

    @ApiModelProperty(value = "采购员id")
    @TableField("buyer")
    private Long buyer;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "经手人id")
    @TableField("handle_user")
    private Long handleUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "审核人id")
    @TableField("audit_user")
    private Long auditUser;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Date auditTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "打印时间")
    @TableField("print_time")
    private Date printTime;

    @ApiModelProperty(value = "更新人id")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @ApiModelProperty(value = "默认为0,1为删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "单据状态")
    @TableField("status")
    private Integer status;


}
